<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/v2/console/common/taglibs.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
	<title>修改联系方式</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="${path}/v2/console/css/base.css">
	<link rel="stylesheet" href="${path}/v2/console/css/style.css">
	<script src="${path}/v2/console/js/jquery-1.9.1.min.js"></script>
	<script src="${path}/v2/console/My97DatePicker/WdatePicker.js"></script>
	<script src="${path}/v2/console/js/jquery.form.js"></script>
	<script type="text/javascript"	src="${path}/kindeditor/kindeditor-min.js"></script>
</head>
<body>
	<div id="wrapper" >
		<div class="main">
			<div class="main-right">
				<div class="column-name">
					<h2>联系方式管理 > <b>修改联系方式</b></h2>
				</div>
				<div class="form">
					<form id="updatecontact" action="/siteContactV2/updateSiteContactV2.html" method="post" enctype="multipart/form-data">
							<input type="hidden" name="id" value="${obj.id}">
						
								<div class="form-item">
									<div class="form-name">名称：</div>
									<div class="form-input">
										<input AutoComplete="off" type="text" class="input" id="name" name="name" value="${obj.name} " >
										<div class="clearfix"></div>
										<div class="form-msg hide" style="color: red;"></div>
									</div>
								</div>
								
								<div class="form-item">
									<div class="form-name">所属类别：</div>
									<div class="form-input">
										<select name="contype" class="input">
											<option value="1"
												<c:if test="${obj.contype == 1 }">selected = "selected"</c:if>>大赛动态</option>
											<option value="2"
											<c:if test="${obj.contype == 2 }">selected = "selected"</c:if>>大赛排名</option>
										</select>
									</div>
								</div>
										
							<div class="form-item">
								<div class="form-name">内容 ：</div>
								<div class="form-input">
									<textarea name="content" id="detail" class="input">${obj.content}</textarea>
								</div>
							</div>
					<button type="submit" class="btn w144">保  存</button>
				</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
//上传图片
function uploadPic(){
	//异步上传
	var options = {
			url : "${path}/siteContactV2/uploadImg.html",
			dataType : "json",
			type : "post",
			success : function(data){
				//回调 路径  data.path
				$("#allUrl").attr("src",data.url);
				$("#path").val(data.path);
			}
	}
	$("#contact").ajaxSubmit(options);
}
KE.show({
	id : 'detail',
	height:'500px',
	imageUploadJson : '${path}/content/uploadLogoTexarea.html', 
	allowFileManager : true,
	afterCreate : function(id) {
		KE.event.ctrl(document, 13, function() {
			KE.util.setData(id);
		});
	}
});
</script>
